Skip to content

Add JSON Schema for metadata.json, used by Docker Desktop extensions.#5221

Open
KTrain5169 wants to merge 4 commits intoSchemaStore:masterfrom
KTrain5169:feat/add-docker-metadata-json
Open

Add JSON Schema for metadata.json, used by Docker Desktop extensions.#5221
KTrain5169 wants to merge 4 commits intoSchemaStore:masterfrom
KTrain5169:feat/add-docker-metadata-json

Conversation

@KTrain5169
Copy link

I'm not sure what to do for some errors, especially as the CLI doesn't give me all the errors at once so I just gave up for now. Pointers appreciated, thanks in advance.

@github-actions
Copy link
Contributor

Thanks for the PR!

This section of the codebase is owned by @madskristensen and @hyperupcall - if they write a comment saying "LGTM" then it will be merged.

@hyperupcall
Copy link
Member

hyperupcall commented Feb 5, 2026

Thanks! The schema name is also too general: metadata.json will likely yield too many false positives;

@KTrain5169
Copy link
Author

Thanks! The schema name is also too general: metadata.json will likely yield too many false positives;

That's true; how would I remove it from being associated with a specific file pattern then?

@KTrain5169
Copy link
Author

Also, docker-extension-metadata.json does have a $schema which is set to https://json-schema.org/draft-07/schema#, so I'm not sure why it's failing here

@hyperupcall
Copy link
Member

hyperupcall commented Feb 14, 2026

@KTrain5169 We allow for fileMatch to be empty array or not defined at all. For the value $schema, be sure you look carefully, I'm pretty sure it must be http://;

@KTrain5169
Copy link
Author

@KTrain5169 We allow for fileMatch to be empty array or not defined at all. For the value $schema, be sure you look carefully, I'm pretty sure it must be http://;

thanks for the tips. why does it not support https://?

@hyperupcall
Copy link
Member

hyperupcall commented Feb 14, 2026

@KTrain5169 I would recommend reading the JSONSchema specification. There, they define what are valid and not valid values of $schema. We enforce those values so that our schemas work across more implementers, ones that may not be lenient;

@KTrain5169
Copy link
Author

@KTrain5169 I would recommend reading the JSONSchema specification. There, they define what are valid and not valid values of $schema. We enforce those values so that our schemas work across more implementers, ones that may not be lenient;

Will do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants